import { Header } from 'ant-design-vue/lib/layout/layout'
import http from './http'
import qs from 'qs'

const userConfig = {
    transformRequest: [
        function (data) {
            return qs.stringify(data);
        }
    ],
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
    }
};
export const login = params => http('post', '/api/login', params, userConfig)

/*
不会写es6，看传统es5写法
export const login = function(req) {
    return http('post','/GetTreeListForSoilByRegion',params)
}
*/